package com.dmall.sort.enums;

/**
 * 排序类型枚举（升序还是降序）
 * @author xiao1.wang@dmall.com
 * @date 2019-07-18 18:40:06
 */
public enum OrderByTypeEnum {
    /** 升序 */
    ASC(0, "升序"),
    /** 降序 */
    DESC(1, "降序");
    private int value;
    private String desc;

    OrderByTypeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}
